Ext.define('Admin.store.NavigationTree', {
    extend: 'Ext.data.TreeStore',

    storeId: 'NavigationTree',

    fields: [{
        name: 'text'
    }],

    root: {
        expanded: true,
        children: [
            {
                text: 'Dashboard',
                iconCls: 'x-fa fa-desktop',
                rowCls: 'nav-tree-badge nav-tree-badge-new',
                viewType: 'admindashboard',
                routeId: 'dashboard', // routeId defaults to viewType
                leaf: true
            },{
                text: '考勤管理',
                iconCls: 'x-fa fa-address-card',
                //rowCls: 'nav-tree-badge nav-tree-badge-hot',
                children:[{
                text: '考勤记录',
                iconCls: 'x-fa fa-user-md',
                //rowCls: 'nav-tree-badge nav-tree-badge-hot',
                viewType: 'attendanceModelPanel',
                leaf: true
            },{
                text: '请假申请',
                iconCls: 'x-fa fa-align-justify',
                expanded: false,
                selectable: false,
                children: [{
                        text: '我的请假',
                        iconCls: 'x-fa fa-arrow-circle-o-up',
                        viewType: 'leave',
                        leaf: true
                },{
                        text: '请假审批',
                        iconCls: 'x-fa fa-archive',
                        viewType: 'leaveapprove',
                        leaf: true
                },{
                        text: '请假管理',
                        iconCls: 'x-fa fa-archive',
                        //viewType: 'leave-manage',
                        leaf: true
                }]
            }
	                 ]	
            },
            		
            {
                text: '绩效管理',
                iconCls: 'x-fa fa-usd',
                //rowCls: 'nav-tree-badge nav-tree-badge-hot',
                children:[{
                text: '奖罚记录',
                iconCls: 'x-fa fa-user-md',
                //rowCls: 'nav-tree-badge nav-tree-badge-hot',
                viewType: 'rapModelPanel',
                leaf: true
            },{
                text: '绩效考核',
                iconCls: 'x-fa fa-user-md',
                //rowCls: 'nav-tree-badge nav-tree-badge-hot',
              viewType: 'performanceModelPanel',
                leaf: true
            },{
                text: '工资管理',
                iconCls: 'x-fa fa-user-md',
                //rowCls: 'nav-tree-badge nav-tree-badge-hot',
                viewType: 'salaryModelPanel',
                leaf: true
            }
	                 ]
            },
            {
                text: '流程引擎管理',
                iconCls: 'x-fa fa-align-justify',
                expanded: false,
                selectable: false,
                children: [{
                        text: '流程部署',
                        iconCls: 'x-fa fa-arrow-circle-o-up',
                        viewType: 'process-definition',
                        leaf: true
                },{
                        text: '流程模型',
                        iconCls: 'x-fa fa-archive',
                        viewType: 'processmodel',
                        leaf: true
                }]
            }
            
        ]
    }
});